#include "fitsio.h"

#ifndef _CCD290_FITS_HEADER_H_
#define _CCD290_FITS_HEADER_H_

typedef struct fits_key_value_ {
    short status;   // 0 means not initialized; 1 means initialized properly
	char key[9];
	char value[23];
    char comment[50];
} fits_key_value;

//	this struct stores header info 

typedef struct fits_header_ {
    int num_of_key_value;   // number of key-value pairs
    fits_key_value * key_value;
} fits_header;


fits_header* create_fits_header(int size);
void destroy_fits_header(fits_header* fh);

//	initialized fits_header form configuration file *ptr_ini
int init_fits_header( fits_header* fh, char *ptr_ini );

int fits_header_write_keys( fitsfile *fptr, fits_header *fh );

#endif // _CCD290_FITS_HEADER_H_
